__author__ = 'zoulida'
from pytdx.hq import  TdxHq_API
api=TdxHq_API()

if api.connect('119.147.212.81', 7709):
    data=[]

    for i in range(10):
        data+=api.get_security_bars(9,0,'000001',(9-i)*800,800)
print(api.to_df(data))